put one's finger in the fire

自讨苦吃,因做某事而遭殃